home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Variations
/
cartesian
next >
Wrap
Text File
|
1998-08-11
|
283b
|
10 lines
cartesian list1 list2
This function is able to output all this different combinatory possibilities in the intersection of two lists.
(cartesian '(a b c d) '(e f g h))
=> ((a e) (a f) (a g) (a h)
(b e) (b f) (b g) (b h)
(c e) (c f) (c g) (c h)
(d e) (d f) (d g) (d h))